package com.zds.scm.service;

import java.util.List;

import com.zds.scm.common.service.CommonService;
import com.zds.scm.domain.DeptInfo;

public interface DeptInfoService extends CommonService<DeptInfo> {
	 /**
	    * 分页查询所有系别信息
	    * @param currentPage
	    * @param pageSize
	    * @return
	    */
	   public List<DeptInfo> findAll(int currentPage, int pageSize);
		/**
		 * 所有系别总量
		 * @return
		 */
	   public int getTotalRows();
	   /**
	    * 满足系部编号或者系部名称模糊查询的记录结果集
	    * @param likeDeptName
	    * @param likeDeptCode
	    * @param currentPage
	    * @param pageSize
	    * @return
	    */
	   public List<DeptInfo> findByNameAndCode(String likeDeptName,String likeDeptCode,int currentPage, int pageSize);
	   /**
	    * 满足系部编号或者系部名称模糊查询的记录结果集的数量
	    * @param likeDeptName
	    * @param likeDeptCode
	    * @return
	    */
	   public int getTotalRowsByNameAndCode(String likeDeptName,String likeDeptCode);
}
